package ObserverMode

object internetWeather {
  def main(args: Array[String]): Unit = {
    /*  val mcurrentConditions = new currentConditions
      val mwaeatherData = new WeatherData(mcurrentConditions)
      mwaeatherData.setData(30, 150, 40)*/
    //观察者模式
    val mweatherDataSt = new WeatherDataSt()
    val sinaConditions = new SinaConditions()
    mweatherDataSt.registerObderver(sinaConditions)
    mweatherDataSt.setData(28, 100, 32)


  }

}
